﻿<UserControl x:Class="devtm.Editor.TypeSelector.AttributeBuilder.TitleChooseAttributeUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:Height="25" d:DesignWidth="452" HorizontalAlignment="Stretch">
    <Grid>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20" />
            <ColumnDefinition />
            <ColumnDefinition Width="120" />
        </Grid.ColumnDefinitions>
        
        <Image Width="16" 
               Height="16" 
               Grid.Column="0" 
               HorizontalAlignment="Left" 
               Name="image1" 
               Stretch="Uniform" 
               Source="/devtm.Editor.TypeSelector;component/Images/Class.gif" />
        
        <ComboBox Grid.Column="1" 
                  IsEditable="True" 
                  MinWidth="200"
                  x:Name="Liste"
                  DisplayMemberPath="{Binding FullName}"
                  ItemsSource="{Binding DataContext}"
                  SelectedItem="{Binding SelectedItem}"
                  LostFocus="ComboLostFocus" 
                  SelectionChanged="ComboSelectionChanged">
        </ComboBox>
        
        <Label Grid.Column="1" 
               Content="{Binding Label }" 
               MinWidth="200"
               Height="25"
               x:Name="MyLabel" 
               MouseDown="LabelMouseDown" />
        
        <Image  
               x:Name="MyImg"
               MouseDown="MyImg_MouseDown"
               HorizontalAlignment="Left" 
               VerticalAlignment="Bottom"
               Source="/devtm.Editor.TypeSelector;component/Images/AddAttribute.png" 
               Width="111" 
               Grid.Column="1" />

        <Image  
                x:Name="ImgSuppression"
                
                HorizontalAlignment="Right" 
                VerticalAlignment="Center"
                Source="/devtm.Editor.TypeSelector;component/Images/supprimer.png" 
                Width="16" 
                Grid.Column="2" MouseDown="Suppress" />

    </Grid>
</UserControl>
